﻿using Microsoft.AspNetCore.Mvc;
using Rswl.Common.Core;

namespace Plugin.User.Controllers
{
   
    [Route("api/[controller]")]
    [ApiController]
    public class VisitorController : ControllerBase
    {
        
        IUserDomainService userDomainService;
        public VisitorController(IUserDomainService userDomainService
           )
        {
            this.userDomainService = userDomainService;
        }
        /// <summary>
        /// 访客信息
        /// </summary>
        /// <returns></returns>
        [HttpGet("info")]
        public object GetInfo()
        {
           return userDomainService.CreateVisitor();
        }
    }
}
